package com.wsz.cloud.core.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.wsz.cloud.core.entity.UserInfo;
import com.wsz.cloud.core.repository.UserInfoRepository;
import com.wsz.cloud.core.service.UserInfoService;

@Service
public class UserInfoServiceImpl implements UserInfoService{

	@Resource
	private UserInfoRepository userInfoRepository;
	
	@Override
	public UserInfo findOne(Long id) {
		return userInfoRepository.findOne(id);
	}

	@Override
	public List<UserInfo> getUserList() {
		return userInfoRepository.findAll();
	}

}
